package atguigu.oop;

public class Rectangle extends Shape{

	
	private int length;
    private int width;
	
    
    
	public Rectangle() {
		super();
	}



	public Rectangle(int length, int width) {
		super();
		this.length = length;
		this.width = width;
	}



	public int getLength() {
		return length;
	}



	public void setLength(int length) {
		this.length = length;
	}



	public int getWidth() {
		return width;
	}



	public void setWidth(int width) {
		this.width = width;
	}



	@Override
	public int area() {
		 return (width * length);
	}

}
